import request from '@/utils/request'

// 获取条件筛选所需的数据
export function getConditionListApi(id = 0) {
  return request.get(`/category/list/${id}`)
}

// 根据车辆类型查询其品牌
export function getBrandListApi(categoryId) {
  return request.get(`/category/brand/${categoryId}`)
}

// 获取车辆分类列表，用于下拉菜单
export function getVehicleCategoryListApi() {
  return request.get('/category/vehicleCategoryList')
}

// 根据分类id查询分类名
export function getCategoryNameApi(id) {
  return request.get(`/category/categoryName/${id}`)
}
